//
//  NetworkTools+User.swift
//  1.新浪微博
//
//  Created by 温泉 on 16/3/5.
//  Copyright © 2016年 itcast. All rights reserved.
//

import Foundation
// MARK: - 网络工具 - 用户接口
extension NetworkTools {
    
    func loadUser(access_token: String,
        uid: String,
        finished: ([String: AnyObject]?) ->()) {
        
        let urlString = "https://api.weibo.com/2/users/show.json"
        
        let params = ["access_token": access_token, "uid":uid]
        
        request(.GET, URLString: urlString, parameters: params, finished: finished)
    }
}